<extend name="Base/member"/>

<block name="breadcrumb">
  <ul class="breadcrumb">
    <li><a href="{:U('/')}">首页</a></li>
    <li class="active">收藏店铺</li>
  </ul>
</block>

<block name="body">
  <div class="user-box">
    <h3>收藏店铺</h3>
    <div class="row item-list J_item_list">
      <notempty name="lists">
        <volist name="lists" id="vo">
          <div class="col-xs-2 item J_item" id="J_favitem_{$vo.store_id}">
            <div class="thumbnail thumbnail-fav">
              <a href="{:U('Store/index', array('store_id' => $vo['store_id']))}" target="_blank">
              <notempty name="vo.logo">
                  <img src="{:get_image_thumb($vo['logo'], 220, 220)}" class="pic">
              <else />
                  <img src="__IMG__/img-pai-bg.png" class="pic">
              </notempty>
              </a>
              <div class="caption">
                <h5 class="thumbnail-label">
                  <a href="{:U('Store/index', array('store_id' => $vo['store_id']))}">{$vo.store_name}</a>
                </h5>
                <p class="thumbnail-menu">
                  <a href="javascript:;" data-id="{$vo.store_id}" class="btn btn-mini pull-right btn btn-negative J_remove_nav">删除</a>
                </p>
              </div>
            </div>
          </div>
        </volist>
      <else/>
        <p class="list-empty">您暂时没有收藏店铺。</p>
      </notempty>
    </div>
  </div>
</block>
<block name="script">
  <script>
    seajs.use('item', function(item){
      $('.J_remove_nav').on('click', function(){
        item.removeFav($(this).data('id'),'store');
      });
    });
  </script>
</block>